package com.example.Custom;

import com.example.weatherforcast.R;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class Life extends LinearLayout{
	public Life(Context context) {
		this(context, null); 
	}
	public Life(Context context, AttributeSet attrs) {
		super(context, attrs);
		View view=LayoutInflater.from(context).inflate(R.layout.customlife,this, true);
		tv_customcity=(TextView) findViewById(R.id.tv_customcity);
		iv_customcity=(ImageView) findViewById(R.id.iv_customcity);
	}


	private int src;
	private String text;
	private TextView tv_customcity;
	private ImageView  iv_customcity;
	

	public int getSrc() {
		return src;
	}


	public void setSrc(int src) {
		this.src = src;
		iv_customcity.setImageResource(src);
	}


	public String getText() {
		return text;
	}


	public void setText(String text) {
		this.text = text;
		tv_customcity.setText(text);
	}



		
		
		

}
